package com.ygj.documentProcessing.service;

import java.util.List;

import com.ygj.base.common.persistent.model.Notes;
import com.ygj.base.common.persistent.model.Sign;
import com.ygj.base.webservice.entity.announcement.Note;

public interface DocumentProcessingService {

	/**
	 * 查询公文审批总条数
	 * 
	 * @param username
	 * @return
	 */
	public int queryDocumentProcessingTotalCounts(String username);

	/**
	 * 查询公文审批列表
	 * 
	 * @param username
	 * @return
	 */
	public List<Sign> queryDocumentProcessing(String username);

	/**
	 * 查询公文审批详细
	 * 
	 * @param fno
	 * @return
	 */
	public Note queryDocumentProcessingDetail(String fno);

	/**
	 * 提交公文审批
	 * 
	 * @param username
	 * @param fno
	 * @param fps
	 * @return
	 */
	public int approve(String fmen, Notes notes);

	/**
	 * 退单到起草人
	 * 
	 * @param fmen
	 * @param notes
	 * @return
	 */
	public int backToTheDrafters(String fmen, Notes notes);

	/**
	 * 退单到上一级
	 * 
	 * @param fmen
	 * @param notes
	 * @return
	 */
	public int cancelTheOrderToLast(String fmen, Notes notes);

	/**
	 * 修改审批流程
	 * 
	 * @param fmen
	 * @param fno
	 * @param ftitle
	 * @param fbm
	 * @param oldFsp
	 * @param newFsp
	 * @param newFfb 
	 * @return
	 */
	public int updateFsp(String fmen, String fno, String ftitle, String fbm, String oldFsp, String newFsp, String newFfb);


}
